<%--
  Created by IntelliJ IDEA.
  User:mohan lau
  Date: 2021-05-11
  Time: 20:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path;
%>
<c:set var="bp" value="<%=basePath%>"></c:set>
<html>
<head>
    <title>配送员展示</title>
    <link href="${bp}/static/css/bootstrap.css" rel="stylesheet">
    <style>
         th{
             text-align: center
         }
    </style>
</head>
<body>
<h3 style="text-align: center">配送员展示</h3>
<table class="table table-hover" style="margin: 0 auto; text-align: center">
    <tr>
        <th>配送员编号</th>
        <th>配送员电话</th>
        <th>配送员密码</th>
        <th>性别</th>
        <th>年龄</th>
        <th>配送员评分</th>
        <th>配送员名称</th>
        <th>配送员身份证号</th>
        <th>资料提交情况</th>
        <th>注册资料审核结果</th>
    </tr>
    <c:forEach items="${courier}" var="c">
        <tr>
            <td>${c.did}</td>
            <td>${c.dtel}</td>
            <td>${c.dpass}</td>
            <td>${c.dsex}</td>
            <td>${c.dage}</td>
            <td>${c.dgrade}</td>
            <td>${c.dname}</td>
            <td>${c.didcard}</td>
        <c:if test="${c.ddate.equals('未提交')}"><td style="background-color: yellow">${c.ddate}</td></c:if>
        <c:if test="${c.ddate.equals('已提交')}"><td style="background-color: greenyellow">${c.ddate}</td></c:if>
        <c:if test="${c.dresult.equals('未审核')}"><td style="background-color: yellow">${c.dresult}</td></c:if>
            <c:if test="${c.dresult.equals('审核通过')}"><td style="background-color: greenyellow">${c.dresult}</td></c:if>
            <c:if test="${c.dresult.equals('审核未通过')}"><td style="background-color: red">${c.dresult}</td></c:if>
        </tr>
    </c:forEach>
</table>
</body>
</html>
